<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改四向车监控')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-manage-edit" th:object="${carManage}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">设备名称：</label>
                <div class="col-sm-8">
                    <input name="name" th:field="*{name}" class="form-control" type="text" disabled>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">对应当前层：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="floor" th:field="*{floor}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">对应货区：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="area" th:field="*{area}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">Y轴距离：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="distance" th:field="*{distance}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">目标层：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="mbFloor" th:field="*{mbFloor}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">电量：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="dl" th:field="*{dl}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">设备状态：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="sbzt" th:field="*{sbzt}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">允许下发：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="yxxf" th:field="*{yxxf}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">最小层：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="minFloor" th:field="*{minFloor}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">最大层：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="maxFloor" th:field="*{maxFloor}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">X轴距离：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="distanceX" th:field="*{distanceX}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">载货状态：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="zhzt" th:field="*{zhzt}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">小车IP：</label>
                <div class="col-sm-8">
                    <input name="ip" th:field="*{ip}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">小车端口：</label>
                <div class="col-sm-8">
                    <input name="port" th:field="*{port}" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">下发时间：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="sendTime" th:field="*{sendTime}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">空闲时间：</label>
                <div class="col-sm-8">
                    <input name="easyTime" th:field="*{easyTime}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/manage";
        $("#form-manage-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-manage-edit').serialize());
            }
        }
    </script>
</body>
</html>